企业空间 采购商城 存储论坛
首页 > HBA卡 > HBA卡知识 > 正文

教你如何在AIX下查看HBA卡WWN号的命令及详细方法步骤

2015-02-11 14:12来源:中国存储网
导读:本文介绍如何在Aix下查看HBA卡的WWN号信息,prtconf和lsdev命令都可以。WWN即World Wide Name的简写,就像网卡的MAC地址一样,WWN是用在光纤网络的。

本文介绍如何在Aix下查看HBA卡的WWN号信息,什么是HBA卡?这个前边讲过了,这里说说什么是WWN号,WWN即World Wide Name的简写,是用来标识网络上的一个连接或连接集合,主要用于FC和SAS设备上。就像网卡的MAC地址一样,WWN是用在光纤网络的,所以,简言之,WWN就似乎HBA卡的MAC地址。

在AIX下,查看HBA名和数量,有两个命令prtconf和lsdev命令都可以查看得到:

# prtconf|grep fc


+ fcs2             U7879.001.DQD629X-P1-C5-T1                                   FC Adapter
* fcnet2           U7879.001.DQD629X-P1-C5-T1                                   Fibre Channel Network Protocol 
Device
+ fcs1             U7879.001.DQDZZCR-P1-C5-T1                                   FC Adapter
* fcnet1           U7879.001.DQDZZCR-P1-C5-T1                                   Fibre Channel Network Protocol 
Device
+ fcs0             U7879.001.DQD630D-P1-C2-T1                                   FC Adapter
* fcnet0           U7879.001.DQD630D-P1-C2-T1                                   Fibre Channel Network Protocol 
Device

可以看到,这是3块HBA卡,


# lsdev -Cc adapter|grep fcs


fcs0      Available 0F-08 FC Adapter
fcs1      Available 0G-08 FC Adapter
fcs2      Available 0H-08 FC Adapter

AIX下查看HBA卡WWN号,这里也可以用两个命令:lscfg和fcstat,fcstat命令看到的信息更为详细,能查看到当前运行的状态:
# lscfg -vpl fcs0


  fcs0             U7879.001.DQD630D-P1-C2-T1  FC Adapter

        Part Number.................03N5014
        EC Level....................A
        Serial Number...............1B74704D6A
        Manufacturer................001B
        Customer Card ID Number.....280D
        FRU Number.................. 03N5014
        Device Specific.(ZM)........3
        Network Address.............10000000C96E223C
        ROS Level and ID............02C82138
        Device Specific.(Z0)........1036406D
        Device Specific.(Z1)........00000000
        Device Specific.(Z2)........00000000
        Device Specific.(Z3)........03000909
        Device Specific.(Z4)........FFC01159
        Device Specific.(Z5)........02C82138
        Device Specific.(Z6)........06C32138
        Device Specific.(Z7)........07C32138
        Device Specific.(Z8)........20000000C96E223C
        Device Specific.(Z9)........BS2.10X8 
        Device Specific.(ZA)........B1D2.10X8 
        Device Specific.(ZB)........B2D2.10X8 
        Device Specific.(ZC)........00000000
        Hardware Location Code......U7879.001.DQD630D-P1-C2-T1
  PLATFORM. SPECIFIC
  Name:  fibre-channel
    Model:  LP11000
    Node:  fibre-channel@1
    Device Type:  fcp
    Physical Location: U7879.001.DQD630D-P1-C2-T1
# fcstat fcs0


FIBRE CHANNEL STATISTICS REPORT: fcs0
Device Type: FC Adapter (df1000fd)
Serial Number: 1B74704D6A
Option ROM Version: 02C82138
Firmware Version: B1D2.10X8 
World Wide Node Name: 0x20000000C96E223C(这就是这块HBA光纤适配卡的wwn号)
World Wide Port Name: 0x10000000C96E223C
FC-4 TYPES:
  Supported: 0x0000012000000000000000000000000000000000000000000000000000000000
  Active:    0x0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): 4 GBIT
Port Speed (running):   4 GBIT
Port FC ID: 0x011000
Port Type: Fabric
Seconds Since Last Reset: 420651          
        Transmit Statistics     Receive Statistics
        -------------------     ------------------
Frames: 18892136                378709011       
Words:  3987421184              189917300736    

看到了吧,其实在AIX系统下查看wwn的命令和方法很简单的。

继续阅读
关键词 :
wwwn号
中国存储网声明:此文观点不代表本站立场,如有版权疑问请联系我们。
相关阅读
产品推荐
头条阅读
栏目热点

Copyright @ 2006-2019 chinastor.cn 版权所有 京ICP备14047533号

中国存储网

存储第一站,存储门户,存储在线交流平台